<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>小花助教</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/animate.css/4.1.1/animate.min.css" rel="stylesheet">
</head>
<style>
    .body {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-top: 20%;
    }

    .body img {
        width: 26rem;
        height: 26rem;
    }

    .body h1 {
        font-size: 4rem;
        color: #504e4e;
    }
</style>
<body>

<div class="body animate__animated animate__fadeInDown">
    <img th:if="${errcode} == 0" src="../images/loginSuccess.webp" alt="登录成功">
    <img th:if="${errcode} != 0 and ${errcode} != 42009" src="../images/newUser.webp" alt="新用户">
    <img th:if="${errcode} == 42009" src="../images/loginError.webp" alt="登录失败">


    <h1 th:if="${errcode} == 0">登录成功</h1>
    <h1 th:if="${errcode} != 0">[[ ${errcode} ]]</h1>
</div>

</body>
</html>